<template>
	<view style="padding-bottom: 200rpx;">
		<view class="column" >
			<text class="">
				第一步
			</text>
			<image style="margin: 0rpx auto;" src="/static/download/ios/1.png" mode="widthFix"></image>
		</view>
		<view class="column" >
			<text class="">
				第二步
			</text>
			<image style="margin: 0rpx auto;" src="/static/download/ios/2.png" mode="widthFix"></image>
		</view>
		<view class="column" >
			<text class="">
				第三步
			</text>
			<image style="margin: 0rpx auto;" src="/static/download/ios/3.png" mode="widthFix"></image>
		</view>
		<view class="column" >
			<text class="">
				第四步
			</text>
			<image style="margin: 0rpx auto;" src="/static/download/ios/4.png" mode="widthFix"></image>
		</view>
		<view class="column" >
			<text class="">
				总结
			</text>
			<image style="margin: 0rpx auto;" src="/static/download/ios/5.png" mode="widthFix"></image>
		</view>
		<view class="column" style="padding: 0rpx 50rpx;">
			<text class="">
				如果正在使用中的应用出现无法打开的情况，请重新下载APP按照上面的步骤重新信任即可
			</text>
		</view>
		<view class="btns">
			<view @click="download()" >
				<view class="icon">
					<image src="/static/download/ios.png" mode=""></image>
				</view>
				<view class="text">
					<view>点击下载安装</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		onShow() {
			var lastTouchEnd = 0;
			document.documentElement.addEventListener('touchend', function (event) {
			  var now = Date.now();
			  if (now - lastTouchEnd <= 300) {
				event.preventDefault();
			  }
			  lastTouchEnd = now;
			}, false);
		},
		methods:{
			download(){
				window.location.href = "itms-services:///?action=download-manifest&url=https://yunzhuanapp.oss-cn-hangzhou.aliyuncs.com/app/task-ios.plist";
			}
		}
	}
</script>

<style lang="scss">
	.column{
		display: flex;
		justify-content:center;
		align-items: center;
		margin: 30rpx 0rpx;
		text{
			padding: 10rpx 0rpx;
			color: #F5222D;
		}
	}
	
	.btns {
		width: 100vw;
		position: fixed;
		z-index: 100;
		bottom: 10rpx;
	
		>view {
			width: 380upx;
			height: 120upx;
			background-color: #0079ff;;
			color: #FFFFFF;
			display: flex;
			margin: 0 auto;
			margin-bottom: 40upx;
			border-radius: 15upx;
			box-shadow: 0 10upx 24upx -10upx #0079ff;;
			;
	
			.icon {
				width: 120upx;
				height: 120upx;
				display: flex;
				justify-content: center;
				align-items: center;
			}
	
			.text {
				display: flex;
				flex-direction: column;
				justify-content: center;
	
				view:nth-child(1) {
					font-size: 34upx;
				}
	
				view:nth-child(2) {
					font-size: 28upx;
				}
			}
	
			image {
				width: 50upx;
				height: 50upx;
			}
		}
	
		>view:nth-child(2) {
			margin-bottom: 0upx;
		}
	}
</style>
